<%-- 
    Document   : accordion
    Created on : 19.07.2011, 15:18:41
    Author     : irabin
--%>

<%-- 
    Document   : pageIndex
    Created on : 19.07.2011, 11:54:40
    Author     : irabin
--%>

<jsp:directive.page contentType="text/xml" pageEncoding="UTF-8" />

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>


<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      output-encoding="UTF-8" paging="true" 
      title="My Netbiscuits | Examples - Accordion |  by Isak Rabin" xsd-version="1.12" 
      xsi:nonamespaceschemalocation="http://www.netbiscuits.com/schema/netbiscuits-1.12.xsd">

    <meta content="My Netbiscuits | Example | Accordion" name="description"/>

    <jsp:include page="res/includes/page.style.jsp"></jsp:include>
    
    <script>
            <function name="hides">
                <action name="hide">
                    <param name="id" value="section1Detail" />
                </action>
                <action name="hide">
                    <param name="id" value="section2Detail" />
                </action>
                <action name="hide">
                    <param name="id" value="section3Detail" />
                </action>
                <action name="hide">
                    <param name="id" value="section4Detail" />
                </action>
            </function>
            
            <event type="onload">
                <call function="hides"/>
            </event >
    </script>        

    <container>
        <column>

            <jsp:include page="res/includes/page.header.jsp"></jsp:include>

            <jsp:include page="res/includes/page.menu.jsp"></jsp:include>
            
            <TEXT>
                <headline>Accordion</headline>
                <richtext/>
            </TEXT>
            
            
            <TEXT href="#">
                <event type="onclick">
                    <action name="toggle">
                        <param name="id" value="section1Detail" />
                    </action>
                    <action name="swapClass">
                        <param name="id" value="section1Title" />
                        <param name="classOne" value="collapsed" />
                        <param name="classTwo" value="expanded" />
                    </action>                    
                </event>            
                <styles>
                    <style name="bgcolor" value="#73AADA"/>
                    <style name="color" value="#FFFFFF"/>
                    <style name="margin-top" value="2px"/>
                    <style name="margin-bottom" value="2px"/>
                </styles>
                <richtext id="section1Title" class="collapsed">[b]Section 1[/b]</richtext>
            </TEXT>

            <ARTICLE id="section1Detail">
                <richtext>
                    Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.                 
                </richtext>
            </ARTICLE>            


            <TEXT href="#">
                <event type="onclick">
                    <action name="toggle">
                        <param name="id" value="section2Detail" />
                    </action>
                    <action name="swapClass">
                        <param name="id" value="section2Title" />
                        <param name="classOne" value="collapsed" />
                        <param name="classTwo" value="expanded" />
                    </action>                    
                </event>             
                <styles>
                    <style name="bgcolor" value="#73AADA"/>
                    <style name="color" value="#FFFFFF"/>
                    <style name="margin-top" value="2px"/>
                    <style name="margin-bottom" value="2px"/>
                </styles>
                <richtext id="section2Title" class="collapsed">[b]Section 2[/b]</richtext>
            </TEXT>

            <ARTICLE id="section2Detail">
                <richtext>
                    Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna. 
                </richtext>
            </ARTICLE>            


            <TEXT href="#">
                <event type="onclick">
                    <action name="toggle">
                        <param name="id" value="section3Detail" />
                    </action>
                    <action name="swapClass">
                        <param name="id" value="section3Title" />
                        <param name="classOne" value="collapsed" />
                        <param name="classTwo" value="expanded" />
                    </action>                    
                </event>             
                <styles>
                    <style name="bgcolor" value="#73AADA"/>
                    <style name="color" value="#FFFFFF"/>
                    <style name="margin-top" value="2px"/>
                    <style name="margin-bottom" value="2px"/>
                </styles>
                <richtext id="section3Title" class="collapsed">[b]Section 3[/b]</richtext>
            </TEXT>

            <ARTICLE id="section3Detail">
                <richtext>
                    Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.
                        [ul]
                            [li]List item one[/li]
                            [li]List item two[/li]
                            [li]List item three[/li]
                        [/ul]
                </richtext>
            </ARTICLE>         

            <TEXT href="#">
                <event type="onclick">
                    <action name="toggle">
                        <param name="id" value="section4Detail" />
                    </action>
                    <action name="swapClass">
                        <param name="id" value="section4Title" />
                        <param name="classOne" value="collapsed" />
                        <param name="classTwo" value="expanded" />
                    </action>                    
                </event>              
                <styles>
                    <style name="bgcolor" value="#73AADA"/>
                    <style name="color" value="#FFFFFF"/>
                    <style name="margin-top" value="2px"/>
                    <style name="margin-bottom" value="2px"/>
                </styles>
                <richtext id="section4Title" class="collapsed">[b]Section 4[/b]</richtext>
            </TEXT>

            <ARTICLE id="section4Detail">
                <richtext>
                    Cras dictum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia mauris vel est.
                    [br][br]
                    Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
                </richtext>
            </ARTICLE>      


            <jsp:include page="res/includes/page.example.footer.jsp"></jsp:include>
            
            <jsp:include page="res/includes/page.footer.jsp"></jsp:include>

            
        </column>
    </container>

</page>

